<!--#include file="XXX.asp"-->

来源:百度知道 编辑:UC知道 时间:2024/07/07 02:10:28
我使用ASP做网页的 使用<!--#include file="XXX.asp"-->后 </body>就会变成暗色了...为什么??怎么解决呢?
我是标题使用这个的,使用后下边的内容在设计视图中都看不到了,怎么解决??高人请指点一下。谢谢。

在你用<!--#include file="XXX.asp"-->它的时候,得把xxx.asp页面上面的代码全部删除,也就是你在文件-新建-创建页面时全选删除
如下代码:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
</body>
</html>
为什么呢?当你把<!--#include file="XXX.asp"-->它写在某个页面时,而xxx.asp最上面的代码没有删除,某个页面就同时有了同一块码,有冲突,所以删除XXX.asp页面最上面的代码就可以了.